package com.lijiayuedaren.entity;

import java.util.Date;

public class Image implements Comparable<Image> {
    int id;
    String name;
    int width;
    int height;
    double ratio;
    int size;
    Date lastModified;
    int categoryid;
    int hadseem;

    public int getCategoryid() {
        return categoryid;
    }

    public void setCategoryid(int categoryid) {
        this.categoryid = categoryid;
    }

    public int getHadseem() {
        return hadseem;
    }

    public void setHadseem(int hadseem) {
        this.hadseem = hadseem;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public double getRatio() {
        return ratio;
    }

    public void setRatio(double ratio) {
        this.ratio = ratio;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public Date getLastModified() {
        return lastModified;
    }

    public void setLastModified(Date lastModified) {
        this.lastModified = lastModified;
    }

    @Override
    public String toString() {
        return "Image{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", width=" + width +
                ", height=" + height +
                ", ratio=" + ratio +
                ", size=" + size +
                ", lastModified=" + lastModified +
                ", categoryid=" + categoryid +
                ", hadseem=" + hadseem +
                '}';
    }

    @Override
    public int compareTo(Image o) {
        return getWidth();
    }
}
